//
//  EyuGameSDK.h
//  EyuGameSDK
//
//  Created by 李长春 on 2022/5/12.
//

#ifndef EyuGameSDK_h
#define EyuGameSDK_h
//sigleton code
#import <EyuGameSDK/AboTool.h>
#import <EyuGameSDK/AboNetwork.h>
#import <EyuGameSDK/AboHttpRequest.h>
#import <EyuGameSDK/AboGameCenterLogin.h>
#import <EyuGameSDK/KeychainItemWrapper.h>
#import <EyuGameSDK/AboHeader.h>
#import "SVProgressHUD/SVProgressHUD.h"
#import <EyuGameSDK/UyeKeychain.h>
#import <EyuGameSDK/AboLanuage.h>

/*SDK配置*/

#define B_WarCrush @"com.coolplay.ios.empire"
#define B_TopCommander @"com.coolplay.ios.island"
#define B_CrimsonCrime @"com.coolplay.ios.city"
#define B_PewPewParty @"com.coolplay.ios.pewpew"  //塔防
#define B_BlockStar @"com.hkcoolplay.ios.blockstar"  //消方块
#define B_LastHero @"com.quxing.ios.lasthero"  //特工队
#define B_harmoplayTest @"com.harmoplay.ios.test"  //战略发行sdk

//是否是正式环境   0 测试环境  1 正式环境
//测试环境时 不上报 错误日志与支付失败日志到服务端
#define kGameProductEnvi 1  //正式环境为1

//苹果账号 绑定的uid是 5355  正式 931651

#define kReceiptType @"appStoreReceipt"

//攻略请求参数  传入的host  用于服务端拼接地址
#define kActivityHd_island @"https://sdk.forislands.com/hd/"
#define kActivityHd_city @"https://hd.gogogame.com"

//钥匙串
#define kChainKeyService @"SaveDataChainService"  //钥匙串service
#define kChainKeyForIDFA @"SaveIDFAInChainkey"   //idfa key
#define kChainKeyForUUID @"SaveUUIDInChainkey"   //uuid key
#define kChainKeyForAFTag @"SaveAppFlyertAGInChainkey"   //AppFlyer Tag

#define kChainKeyForAppleSignUserID @"SaveAppleSignUserIDChainkey"   //苹果登录 uid user

//偏好设置 备份用户 idfa/uuid  避免转移APP后 导致钥匙串获取失败 游客登录数据丢失
#define kUserDefaultIDFA @"CopyHaveIDFA"
#define kUserDefaultUUID @"CopyHaveUUID"

//UA
#define kDeviceAgent @"DeviceAgentKey"

//保存用户的uid nsnumber
#define kUserOnlyID @"UserOnlyIDKey"
//保存用户的登录token
#define kUserLoginOnlyToken @"GameSignInTokenKey"


//保存用户登录的方式  guest、Facebook、Apple
#define kUserLoginWay @"GameAboutUserLoginWayKey"

//抽取字段 避免手写错误
#define kSettingWords @"apple"

//用户切换账号 触发通知
#define kUserSignOther @"kGameForUserSignInOtherAccountKey"

//内购专用uid key
#define inappstore @"StoreOnlyUserIDKey"


//是否是刘海屏
#define IPHONE_X \
({BOOL isPhoneX = NO;\
if (@available(iOS 11.0, *)) {\
isPhoneX = [[UIApplication sharedApplication] delegate].window.safeAreaInsets.bottom > 0.0;\
}\
(isPhoneX);})

#ifndef __OPTIMIZE__
#define NSLog(...) NSLog(__VA_ARGS__)
#else
# define NSLog(...) {}
#endif


#endif /* EyuGameSDK_h */
